// Script assets have changed for v2.3.0 see
// https://help.yoyogames.com/hc/en-us/articles/360005277377 for more information
//@desc ScreenShake(magnitude,frames)
//@arg Magnitude 设置震动幅度
//@arg Frames 设置震动帧数
function ScreenShake(magnitude,frames){
	with(global.iCamera)
	{
		if(magnitude > shakeRemain)
		{
			shakeMagnitude = magnitude;
			shakeRemain = shakeMagnitude;
			shakeLength = frames;
		}
	}
	
}